<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond_Benc
 * @package 		Phpfox_Component
 * @version 		$Id: add.class.php 2682 2011-06-20 19:56:20Z Raymond_Benc $
 */
class Friend_Component_Block_List_Group extends Phpfox_Component
{
	/**
	 * Class process method wnich is used to execute this component.
	 */
	public function process()
	{
		$aListGroup = Phpfox::getService("pages")->getMyGroups();;
		
		
		
		
		$aListPages = Phpfox::getService("pages")->getMyPages();
		list($iCntLEvent,$aListEvents) = Phpfox::getService('event')->getMyEvent();
		
		$topgroup = 150+23*count($aListGroup);
		$toppage = $topgroup + 100+23*count($aListPages);
		$this->template()->assign(array(
			'aListGroup' => $aListGroup,
			'aListPages' => $aListPages,
			'topgroup' => $topgroup,
			'aListEvents' => $aListEvents,
			'toppage' => $toppage,
			
		));
		return 'block';
	}
	
	/**
	 * Garbage collector. Is executed after this class has completed
	 * its job and the template has also been displayed.
	 */
	public function clean()
	{
		
	}
}

?>